<template>
  <PageWrapper contentFullHeight>
    <ListTemplate :register-table="registerTable" addauth="yuntu:report:save" :method="methods" />
  </PageWrapper>
</template>
<script setup lang="ts">
  import ListTemplate from '@/views/common/operate/listTemplate.vue';

  import ApiV1 from '@/views/common/operate/ApiV1';
  import { apiPostUserList } from '@/api/http/system/senior/user/user.api';
  import { useUserListColumns } from '@/api/http/system/senior/user/user.data';
  import PageWrapper from '@/components/Page/src/PageWrapper.vue';

  defineOptions({
    name: 'SystemUserList',
  });

  const { registerTable, methods } = ApiV1.useList({
    tableProps: {
      api: apiPostUserList,
      columns: useUserListColumns(),
      useSearchForm: false,
      actionColumn: {
        width: 260,
      },
      rowKey: 'userId',
    },
  });
</script>
